/**
 * 
 */
package research.proxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @author Rodrigo
 *
 */
public class ProxyClass implements InvocationHandler {

	@Override
	public Object invoke(Object arg0, Method arg1, Object[] arg2) throws Throwable {
		if (arg1.getName().equals("hello"))
			return "world";
		
		return "shit, captain";
	}

}
